﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using JsonSubmitForm.App_Code;

namespace JsonSubmitForm
{
    public partial class GetImage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (null != Request.QueryString["id"])
            {
                int id = Convert.ToInt32(Request.QueryString["id"].ToString());

                EmployeeData emp = new EmployeeData();
                Response.BinaryWrite(emp.GetPhoto(id));
            }
        }
    }
}